package com.baizhi.appController;
import com.baizhi.service.AlbumService;
import com.baizhi.service.AudioService;
import com.baizhi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * Created by Administrator on 2019/4/6.
 * 专辑控制器
 */
@RestController()
@RequestMapping("AppUserController")
public class AppUserController {
    @Autowired
    private UserService userService;




    @GetMapping("appselectUser.do/{userId}")
    public Map appselectUser(@PathVariable("userId")Integer userId){
        return userService.appselectUser(userId);
    };

    @PostMapping("appUpdateUser.do")
    public Map appUpdateUser(String userPassword,String userNewPassword,Integer userId){

        return userService.appUpdateUser(userPassword,userNewPassword,userId);
    };






}
